import request from '@/utils/request'

export default {
  initShopgoodsList(){
    return request({
      url: '/shopGoods/goodsOfHome',
      method: 'post',
    })
  },
  initHomeCategory() {
    let data = {
      showInNav: 1,
      display: 1
    }
    return request({
      url: '/shopCategory/infosPhoto',
      method: 'post',
      data
    })
  },
  initFilterGoods(params, page, size) {
    /** 搜索商品 **/
    let data = {
      filterName: params.filterName
    }
    return request({
      url: '/shopGoods/filterGoodsByName?page='+page+"&size="+size,
      method: 'post',
      data
    })
  }
}
